<template>
    <div id="lunbo">
      <Swipe :auto="4000">
        <Swipe-item>
          <div class="item-wrap">
            <img class="img-responsive" src="../image/cyx.jpg" alt="">
            <p>首页推荐1</p>
          </div>
        </Swipe-item>
        <Swipe-item>
          <div class="item-wrap">
            <img class="img-responsive" src="../image/cxc.jpg" alt="">
            <p>首页推荐2</p>
          </div>
        </Swipe-item>
        <Swipe-item>
          <div class="item-wrap">
            <img class="img-responsive" src="../image/lgh.jpg" alt="">
            <p>首页推荐3</p>
          </div>
        </Swipe-item>
      </Swipe>
    </div>
</template>

<script>
import { Swipe, SwipeItem } from 'mint-ui'
export default {
  name: 'lun_bo',
  data () {
    return {
    }
  },
  mounted: function () {
  },
  components: {
    Swipe,
    SwipeItem
  },
  methods: {
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
#lunbo {
  width: 100%;
  height: 200px;
}
.item-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.item-wrap p {
  /*text-align: left;*/
  padding: 0 10px;
  position: absolute;
  width: 100%;
  height: 40px;
  line-height: 40px;
  top: 150px;
  color: white;
  background: rgba(0,0,0,.5);
}

</style>
